// task_transaction_record_model.dart
import 'package:json_annotation/json_annotation.dart';

part 'task_transaction_record_model.g.dart';

@JsonSerializable()
class TaskTransactionRecordModel {
  final String? amount;
  final String? createTime;
  @JsonKey(name: 'description')
  final String? descriptionStr;
  final String? exchangeDay;
  final String? fromChannel;
  @JsonKey(name: 'id')
  final int? recordId;
  final String? mobile;
  final String? month;
  final String? statusDescription;
  final String? type;

  TaskTransactionRecordModel({
    this.amount,
    this.createTime,
    this.descriptionStr,
    this.exchangeDay,
    this.fromChannel,
    this.recordId,
    this.mobile,
    this.month,
    this.statusDescription,
    this.type,
  });

  factory TaskTransactionRecordModel.fromJson(Map<String, dynamic> json) =>
      _$TaskTransactionRecordModelFromJson(json);

  Map<String, dynamic> toJson() => _$TaskTransactionRecordModelToJson(this);
}